﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace DatabaseAccess
{
    public class MyConnection
    {
        public static string openConnection()
        {
            string connectionString = "";
            try
            {
                connectionString = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
            }
            catch (Exception)
            {
                
                throw;
            }
            return connectionString;

        }
    }
}
